﻿using PMS.XCMG.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using static PMS.XCMG.Entity.Enums.Enums;

namespace PMS.XCMG.Entity
{
    /// <summary>
    /// 响应路径配置
    /// </summary>
    public partial class ResponseVarToMPCodeConfig : BusEntity
    {
        /// <summary>
        /// 电气信号逻辑地址
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 调度路径Id
        /// </summary>
        public string DispathPathCode { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskType { get; set; }

        /// <summary>
        /// 读写类型
        /// </summary>
        public ReadOrWriteType? ReadOrWriteType { get; set; }

        /// <summary>
        /// 电气信号类型
        /// </summary>
        public SignalType? SignalType { get; set; }

        /// <summary>
        /// 工件类型
        /// </summary>
        public WorkPieceType? WorkPieceType { get; set; }

        /// <summary>
        /// 路径类型
        /// </summary>
        public PathType? PathType { get; set; }
    }

    public partial class ResponseVarToMPCodeConfig : BusEntity
    {
        public virtual DispathPathConfig DispathPathConfig { get; set; }
    }

    /// <summary>
    /// 实体配置
    /// OnModelCreating
    /// </summary>
    public class ResponseVarToMPCodeConfigTypeConfig : BusEntityTypeConfig<ResponseVarToMPCodeConfig>, IEntityTypeConfiguration<ResponseVarToMPCodeConfig>
    {
        public override void Configure(EntityTypeBuilder<ResponseVarToMPCodeConfig> builder)
        {
            base.Configure(builder);

            #region 主外键关系
            builder.HasKey(k => k.Id);//设置主键
            //builder.HasOne(m => m.DispathPathConfig).WithMany(m => m.VarToMPCodeConfigs).HasForeignKey(p => p.DispathPathCode);
            #endregion

            #region 字段属性:最大长度,是否必需,默认值
            builder.Property(p => p.Code).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Key).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.TaskType).HasMaxLength(EntityDefinition.DefSmallColLen);
            builder.Property(p => p.ReadOrWriteType).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.SignalType).HasMaxLength(EntityDefinition.DefSmallColLen);
            builder.Property(p => p.WorkPieceType).HasMaxLength(EntityDefinition.DefSmallColLen);
            builder.Property(p => p.DispathPathCode).HasMaxLength(EntityDefinition.DefSmallColLen);
            builder.Property(p => p.PathType).HasMaxLength(EntityDefinition.DefSmallColLen);
            #endregion

            #region 备注
            builder.HasComment("ResponseVarToMPCodeConfig");
            builder.Property(p => p.Code).HasComment("编码");
            builder.Property(p => p.Key).HasComment("电气信号逻辑地址");
            builder.Property(p => p.TaskType).HasComment("任务类型");
            builder.Property(p => p.ReadOrWriteType).HasComment("读写类型");
            builder.Property(p => p.SignalType).HasComment("电气信号类型");
            builder.Property(p => p.WorkPieceType).HasComment("工件类型");
            builder.Property(p => p.DispathPathCode).HasComment("调度匹配路径Code");
            builder.Property(p => p.PathType).HasComment("路径类型");
            #endregion

            #region 种子数据  

            //纵缝焊接
            #region (n1-n6)-N1
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n1",
                Key = "S7Net.PBJYQ.ReadJYJ1MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n2",
                Key = "S7Net.PBJYQ.ReadJYJ2MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n3",
                Key = "S7Net.PBJYQ.ReadJYJ3MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n4",
                Key = "S7Net.PBJYQ.ReadJYJ4MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n5",
                Key = "S7Net.PBJYQ.ReadJYJ5MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n6",
                Key = "S7Net.PBJYQ.ReadJYJ6MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N1",
                PathType = PathType.要框,
            });
            #endregion

            #region (n1-n6)-N2
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n1",
                Key = "S7Net.PBJYQ.ReadJYJ1MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n2",
                Key = "S7Net.PBJYQ.ReadJYJ2MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n3",
                Key = "S7Net.PBJYQ.ReadJYJ3MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n4",
                Key = "S7Net.PBJYQ.ReadJYJ4MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n5",
                Key = "S7Net.PBJYQ.ReadJYJ5MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n6",
                Key = "S7Net.PBJYQ.ReadJYJ6MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N2",
                PathType = PathType.要框,
            });
            #endregion

            #region (n1-n6)-N3
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n1",
                Key = "S7Net.PBJYQ.ReadJYJ1MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n2",
                Key = "S7Net.PBJYQ.ReadJYJ2MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n3",
                Key = "S7Net.PBJYQ.ReadJYJ3MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n4",
                Key = "S7Net.PBJYQ.ReadJYJ4MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S02",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n5",
                Key = "S7Net.PBJYQ.ReadJYJ5MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "n6",
                Key = "S7Net.PBJYQ.ReadJYJ6MoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "S01",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "N3",
                PathType = PathType.要料,
            });
            #endregion

            #region N1-n1
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "N1",
                Key = "S7Net.ZFHJ.WeidingCall_AGV1",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_n1",
                PathType = PathType.要料,
            });
            #endregion

            #region N1-n2
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "N1",
                Key = "S7Net.ZFHJ.WeidingCall_AGV1",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_n2",
                PathType = PathType.要料,
            });
            #endregion

            #region N1-n3
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "N1",
                Key = "S7Net.ZFHJ.WeidingCall_AGV1",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_n3",
                PathType = PathType.要料,
            });
            #endregion

            #region N1-n4
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "N1",
                Key = "S7Net.ZFHJ.WeidingCall_AGV1",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_n4",
                PathType = PathType.要料,
            });
            #endregion

            #region N1-n5
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "N1",
                Key = "S7Net.ZFHJ.WeidingCall_AGV1",
                CreateTime = DateTime.Now,
                TaskType = "S03",
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_n5",
                PathType = PathType.要料,
            });
            #endregion

            //立式主组队1
            #region O1-(o2~o5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o5",
                PathType = PathType.要料,
            });

            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.工件类型,
                DispathPathCode = null,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_AdmissionIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV进入信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_FinishAffirm",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV离开信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_TaskExecuting",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.任务执行中信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_RequestIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV请求进入
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_Finish",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV已经到位
            });


            #endregion

            #region P1-(p2-p5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "p4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p5",
                PathType = PathType.要料,
            });

            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_AdmissionIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV进入信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.ReadMid_CalfMoveIn_FinishAffirm",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV离开信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.WriteMid_CalfMoveIn_TaskExecuting",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.任务执行中信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.WriteMid_CalfMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.WriteMid_CalfMoveIn_RequestIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV请求进入
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD1.WriteMid_CalfMoveIn_Finish",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV已经到位
            });
            #endregion

            #region R1-(r2-r5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r5",
                PathType = PathType.要料,
            });


            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_AdmissionIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV进入信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.ReadCentreMoveIn_FinishAffirm",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV离开信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_TaskExecuting",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.任务执行中信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_RequestIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV请求进入
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R1",
                Key = "S7Net.LSZD1.WriteCentreMoveIn_Finish",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV已经到位
            });
            #endregion

            //立式主组队2
            #region O2-(o2~o5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O2",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_o5",
                PathType = PathType.要料,
            });


            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_AdmissionIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV进入信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.ReadCentreMoveIn_FinishAffirm",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.读,
                SignalType = SignalType.允许AGV离开信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.WriteCentreMoveIn_TaskExecuting",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.任务执行中信号
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.WriteCentreMoveIn_ProductType",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.工件类型
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.WriteCentreMoveIn_RequestIn",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV请求进入
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "O1",
                Key = "S7Net.LSZD2.WriteCentreMoveIn_Finish",
                CreateTime = DateTime.Now,
                ReadOrWriteType = ReadOrWriteType.写,
                SignalType = SignalType.AGV已经到位
            });
            #endregion

            #region P2-(p2-p5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P2",
                Key = "S7Net.LSZD2.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P2",
                Key = "S7Net.LSZD2.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P2",
                Key = "S7Net.LSZD2.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "P1",
                Key = "S7Net.LSZD2.ReadMid_CalfMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.中筒,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_p5",
                PathType = PathType.要料,
            });
            #endregion

            #region R2-(r2-r5)
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R2",
                Key = "S7Net.LSZD2.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r2",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R2",
                Key = "S7Net.LSZD2.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r3",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R2",
                Key = "S7Net.LSZD2.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r4",
                PathType = PathType.要料,
            });
            builder.HasData(new ResponseVarToMPCodeConfig
            {
                Id = Guid.NewGuid().ToString("n"),
                Code = "R2",
                Key = "S7Net.LSZD2.ReadBeforeMoveIn_Request",
                CreateTime = DateTime.Now,
                TaskType = "F0003",
                WorkPieceType = WorkPieceType.前锥,
                ReadOrWriteType = ReadOrWriteType.读,
                DispathPathCode = "s_r5",
                PathType = PathType.要料,
            });
            #endregion

            #endregion
        }
    }
}
